// 当前这个模块：api进行统一管理
import request from '@/utils/request'


//根据账期和工号查询数据
export const reqSalaryStatement= (accountPeriod,jobNumber)=>request({
  url:`/salary/statement/${accountPeriod}/${jobNumber}`,
  method:'get'
});

// 查询分类列表
export function listsalaryInfo(query) {
  return request({
    url: '/salary/list',
    method: 'get',
    params: query
  })
}

// 删除数据
export const deleteInfo =(salaryId)=>request({
  url:`/salary/${salaryId}`,
  method:'delete'
})


// 上传文件
//普通函数形式 
export const uploadsalarys = (formData) => request({
    url: '/salary/batchImport',
    method: 'post',
    data: formData,
    headers: {
      'Content-Type': 'multipart/form-data'
    }
  });

